-- GENERATED SPELL FOR [Thunderstomp] --


function spell0_5832(pUnit, Event) --@Chained Bolt,n/a--
pUnit:FullCastSpellOnTarget(6254,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5832', 1800, 1)
end

function spell1_5832(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_5832', 10349, 1)
end

function Sorts_5832(pUnit, Event)
local choix_sorts_5832 = math.random(0, 1)
if choix_sorts_5832 == 0 then
pUnit:RegisterEvent('spell0_5832', 1, 1)
end
if choix_sorts_5832 == 1 then
pUnit:RegisterEvent('spell1_5832', 1, 1)
end
end

function mob5832_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5832', math.random(1500, 3000), 1)
end

function mob5832_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5832_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5832_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5832, 1, 'mob5832_Action')
RegisterUnitEvent(5832, 2, 'mob5832_Leave')
RegisterUnitEvent(5832, 3, 'mob5832_Kill')
RegisterUnitEvent(5832, 4, 'mob5832_Die')
